<%@ page contentType="text/html; charset=utf-8"%>
<html>
	<head>
		<title>JavaBean作用范围测试2</title>
	<head>
	<body>
		<font color=blue>scope2.jsp内容:</font><p>
		显示4个不同范围的JavaBean对象
		<P>
			对象A的姓名:
			<jsp:useBean id="A" scope="page" class="pojo.MyFriend" />
			<jsp:getProperty name="A" property="name" />
		<p>
			对象B的姓名:
			<jsp:useBean id="B" scope="request" class="pojo.MyFriend" />
			<jsp:getProperty name="B" property="name" />
		<p>
			对象C的姓名:
			<jsp:useBean id="C" scope="session" class="pojo.MyFriend" />
			<jsp:getProperty name="C" property="name" />
		<p>
			对象D的姓名:
			<jsp:useBean id="D" scope="application" class="pojo.MyFriend" />
			<jsp:getProperty name="D" property="name" />
		<p>
			四个对象的hash code(16进制)分别是:
		<p>
			A对象:<%=A.toString()%>
		<p>
			B对象:<%=B.toString()%>
		<p>
			C对象:<%=C.toString()%>
		<p>
			D对象:<%=D.toString()%>
		<p>
	</body>
</html>